package com.example.makerspace.domain;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_user_login_logs",autoResultMap = true)
@Document(indexName = "t_user_login_logs")
public class UserLoginLogsDO extends  BaseDO{
    @Field(name = "username", type = FieldType.Text, analyzer="ik_max_word")
    private  String username;
    @Field(name = "ip_address", type = FieldType.Text, analyzer="ik_max_word")
    private  String ipAddress;
    @Field(name = "browser", type = FieldType.Text, analyzer="ik_max_word")
    private  String browser;
}
